import Vue from 'vue'
import App from './App.vue'
import store from '@/store'
//引入路由
import router from '@/router'
//引入三级联动
import TypeNav from "@/views/home/TypeNav";

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import gbMethods from './utils/GlobalMethod';
import VueVideoPlayer from 'vue-video-player';
import 'video.js/dist/video-js.css';
// import BaiduMap from 'vue-baidu-map'
//参数一：全局组件名字，参数二：哪一个组件
Vue.component(TypeNav.name, TypeNav);
Vue.config.productionTip = false
// import {categoryList} from '@/api/index'
// categoryList();
Vue.use(VueVideoPlayer);
Vue.use(ElementUI);
Vue.use(gbMethods);
// Vue.use(BaiduMap, {
//     ak: 'KDu25c3XZ4NCygTbz7Q10W3dERKmgVxn'
// });
new Vue({
    //注册路由消息，组件身上拥有$route,$router属性
    // $route:一般获取路由消息 路径，params等
    //$router:一般编程式导航跳转
    //注册完路由身上都有$route，$router
    router,
    store,
    render: h => h(App),
}).$mount('#app')
